<?php 
namespace Home\Model;
use Think\Model;
class CommentsModel extends Model{
	public function getAll(){
		$com = $this->select();

			$clevel = array('好评','中评','差评');
			foreach($com as $key=>$val){
				$com[$key]['clevel'] = $clevel[$val['clevel']];
				date_default_timezone_set("PRC");  //设置中国时区
				$com[$key]['ctime'] = date('Y-m-d H:i:s',$com[$key]['ctime']);
			}

		return $com;
	}

}
